//
//  IM_NewMessageFactory.h
//  BleTestDemo
//
//  Created by cjg on 2019/8/22.
//  Copyright © 2019 cjg. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "IMTCANMessage.h"
#import "IM_NewMessageCoder.h"

@interface IM_NewMessageFactory : NSObject

+ (IMTCANMessage *)confirmMessage;

// 标准组
+ (IMTCANMessage *)StandardMessageWithFormat:(IM_NewMessageFormat)format key:(uint8_t)key tab:(uint32_t)tab length:(uint8_t)length source:(uint8_t)source target:(uint8_t)target channel:(uint8_t)channel property:(uint8_t)property para:(NSData *)data;
// 专用组
+ (IMTCANMessage *)DedicatedMessageWithFormat:(IM_NewMessageFormat)format key:(uint8_t)key tab:(uint32_t)tab length:(uint8_t)length source:(uint8_t)source target:(uint8_t)target cmd:(uint32_t)cmd para:(NSData *)dat;
// 自由组
+ (IMTCANMessage *)FreedomMessageWithFormat:(IM_NewMessageFormat)format key:(uint8_t)key tab:(uint32_t)tab length:(uint8_t)length para:(NSData *)data;


@end


